package com.gmall.model.product.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 *
 */
@Data
@ApiModel(description = "商品分类")
public class BaseCategoryDTO {
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "分类名称")
	private String name;

	@ApiModelProperty(value = "分类编号")
	private Long parentId;

	@ApiModelProperty(value = "级别")
	private Long level;

	private Date createTime;

	//树状结构在Java的体现形式
	@ApiModelProperty(value = "子节点")
	private List<BaseCategoryDTO> children;

}

